package esempio.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import esempio.dao.RequestDAO;
import esempio.domain.Request;


@Service
public class RequestServiceImpl implements RequestService {

	@Autowired
	private RequestDAO requestDao;
	
	@Override
	public void add(Request request) {
		//Persist the user object here.
		requestDao.saveRequest(request);
		System.out.println("Request added to the database");

	}

}
